package com.linkhub.oms.data.sync.enums;

import com.linkhub.oms.common.enums.IEnumConvert;
import com.linkhub.oms.common.enums.mp.OrderStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: ShopifyOrderFinancialStatusEnum
 * @Author: echo
 * @Date: 2024/3/30 20:57
 * @Version: 1.0
 */
@Getter
@AllArgsConstructor
public enum OrderFinancialStatusEnum implements IEnumConvert<String> {


    PENDING("pending", OrderStatusEnum.UNPAID),
    AUTHORIZED("authorized", OrderStatusEnum.UNPAID),
    PARTIALLY_PAID("partially_paid", OrderStatusEnum.UNPAID),
    PAID("paid", OrderStatusEnum.PAID),
    PARTIALLY_REFUNDED("partially_refunded", OrderStatusEnum.PARTIAL_REFUND),
    REFUNDED("refunded", OrderStatusEnum.REFUNDED),
    VOIDED("voided", OrderStatusEnum.UNPAID),


    ;
    private final String status;
    private final OrderStatusEnum orderStatus;


    @Override
    public String getCode() {
        return this.getStatus();
    }
}
